package com.wlyuan.open.scanner.utils.enums.tenant;

import lombok.Getter;

/**
 * @author lijing
 * @Description 老系统租户分享类型
 */
@Getter
public enum ShareCompanyTypeEnum {
    /**
     * 企业
     */
    COMPANY(0, "企业"),
    /**
     * 个体司机
     */
    PERSONAL(1, "个体司机");

    private Integer value;
    private String name;

    ShareCompanyTypeEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public static boolean isCompany(Integer val) {
        return COMPANY.getValue().equals(val);
    }

    public static boolean isPersonal(Integer val) {
        return PERSONAL.getValue().equals(val);
    }

}
